package com.wushi.lenovo.asia5b.app_di.profile.presenter;

import com.mvp.base.BasePresenter;
import com.wushi.lenovo.asia5b.app_di.profile.mvpview.VerifyActivityView;
import com.wushi.lenovo.asia5b.app_http.ApiService;

import javax.inject.Inject;

/**
 * Created by zhangyuncai on 2018/12/3.
 */
public class VerifyActivityPresenter extends BasePresenter<VerifyActivityView> {

    ApiService apiService;

    @Inject
    public VerifyActivityPresenter(ApiService apiService) {
        this.apiService = apiService;
    }

    public void sendEmail(String email) {
        baseSubscribe(apiService.sendEmailForResetLoginPass(email), resultModel -> {
            getView().sendEmailResult(resultModel,email);
        });
    }

}